import { Upload } from "@/api/interface/index";
import { DATAFILE } from "@/api/config/servicePort";
import http from "@/api";

/**
 * @name 文件上传模块
 */
// 图片上传
export const uploadImgApi = (params: FormData) => {
  console.log("uploadImgApi params:");
  console.log(params);
  return http.post<Upload.ResFileUrl>(DATAFILE + "/upload", params);
};

// 视频上传
export const uploadVideoApi = (params: FormData) => {
  console.log("uploadVideoApi params:");
  console.log(params);
  return http.post<Upload.ResFileUrl>(DATAFILE + "/upload", params);
};
